package com.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 产品信息管理实体
 */
public class ProductInfomation implements Serializable {
    private Long id;
    private String name;
    private Long product_specificationId;
    private Double price;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date time;
    private Long chain_typeId;
    private Integer sectionNum;
    private String summary;
    private Integer stata;

    @Override
    public String toString() {
        return "product_infomation{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", product_specificationId=" + product_specificationId +
                ", price=" + price +
                ", time=" + time +
                ", chain_typeId=" + chain_typeId +
                ", sectionNum=" + sectionNum +
                ", summary='" + summary + '\'' +
                ", stata='"+ stata +'\'' +
                '}';
    }

    public Integer getStata() {
        return stata;
    }

    public void setStata(Integer stata) {
        this.stata = stata;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getProduct_specificationId() {
        return product_specificationId;
    }

    public void setProduct_specificationId(Long product_specificationId) {
        this.product_specificationId = product_specificationId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Long getChain_typeId() {
        return chain_typeId;
    }

    public void setChain_typeId(Long chain_typeId) {
        this.chain_typeId = chain_typeId;
    }

    public Integer getSectionNum() {
        return sectionNum;
    }

    public void setSectionNum(Integer sectionNum) {
        this.sectionNum = sectionNum;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }
}
